﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.TenderBond
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt.TenderBond;
    public class Map_TenderBondBackApprovalDetail : EntityMapping<TenderBondBackApprovalDetail>
    {
        public Map_TenderBondBackApprovalDetail()
        {
            Property(x => x.BackReason, map => map.Length(100000000));
            Property(x => x.Remark, map => map.Length(1000));
            Property(x => x.InTranAmt);
            
            ManyToOne(x => x.BackApproval, map =>
            {
                map.Column("BackId");
            });

            ManyToOne(x => x.BondRecord, map =>
            {
                map.Column("TenderBondRecordId");
            });
        }
    }
}
